home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Magazin/MacEasy 19
/
Mac Magazin and MacEasy Magazine CD - Issue 19.iso
/
Musik & Kunst
/
Ear Workout 2.1
/
source code
/
generic.h
< prev
next >
Wrap
Text File
|
1995-09-30
|
601b
|
21 lines
//
// generic stuff that isn't specific to the mac or to this program
//
typedef signed char BYTE_T;
typedef signed short WORD_T;
typedef signed long LONG_T;
typedef unsigned char UBYTE_T;
typedef unsigned short UWORD_T;
typedef unsigned long ULONG_T;
#define EVEN_ADDRESS(x) (!(((unsigned long) (x)) & 1L))
#define VALID_POINTER(x) \
( (((char *) (x))!=((char *) 0)) && (((char *) (x))!=((char *) -1)) )
#define VALID_HANDLE(x) (VALID_POINTER(x) && EVEN_ADDRESS(x) \
&& VALID_POINTER(* (char **) (x)) )
typedef int FUNCTION_RETURNING_INT();
typedef void FUNCTION_RETURNING_VOID();